//
//  XLColorMacro.h
//  XLBaseModule
//
//  Created by 于鹏 on 2017/8/8.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//  所有颜色宏定义

#ifndef XLColorMacro_h
#define XLColorMacro_h

//颜色
#define kRGBColorWithAlpha(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define kRGB(r,g,b) kRGBColorWithAlpha(r,g,b,1)

//RGB颜色转换（16进制->10进制）
#define UIColorFromRGBA(rgbValue, alphaValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0x00FF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0x0000FF))/255.0 \
alpha:alphaValue]

//随机颜色
#define kRandomColor [UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4random_uniform(256)/255.0 blue:arc4random_uniform(256)/255.0 alpha:1.0]

#define kXLWhiteColor kRGB(255,255,255)
#define kXLBlackColor kRGB(0,0,0)
#define kXLBlueColor  kRGB(56, 153, 231)
#define kXLClearColor [UIColor clearColor]

#define kNavBar_tintColor kRGB(255,255,255)
#define kNavBar_color kXLBlueColor
#define kTabBar_color kXLBlueColor

//button背景色
#define kXLButtonColor_BLUE kXLBlueColor //蓝色button背景色
//#define kXLButtonTextColorDisable [UIColor lightGrayColor]
#define kXLButtonTextColorDisable UIColorFromRGBA(0x9fcdfd,1)

//背景颜色整合
#define kBackground_color      kRGB(235.0,235.0,235.0)   //view背景
#define kXLLineColor_GRAY      kRGB(229, 233, 236)       //灰色线条
#define kXLLineColor_WHITE     kXLWhiteColor             //白色线条

//字体颜色整合
#define kXLTextColor_GRAY      kRGB(153.0,153.0,153.0)   //接收显示型灰色字体
#define kXLTextColor_BLACK     kXLBlackColor             //展示型黑色字体
#define kXLTextColor_WHITE     kXLWhiteColor             //深色背景白色字体
#define kXLTextColor_BLUE      kRGB(65.0,135.0,251.0)    //协议，疑问 蓝色字体

//#define kXLSeperateLineColor kRGB(212,212,212)    //table分割线颜色
#define kXLSeperateLineColor kRGB(227,227,229)    //table分割线颜色
#define PinkColor           kRGB(245,147,148)     //粉色背景
#define RedColor            kRGB(213, 13, 42)    //红色字体
#define GreenColor          kRGB(55, 189, 93)    //绿色按钮背景


//忘记密码
#define XLForgetPwd_TextFieldTextColor [UIColor whiteColor] //输入框文字颜色
#define XLForgetPwd_UnderlineColor  [UIColor lightTextColor] //输入框下面线的颜色
//#define XLForgetPwd_TextColor [UIColor whiteColor] //文本颜色

#endif /* XLColorMacro_h */
